package com.yicheng;

import com.yicheng.push.Pusher;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;


@SpringBootApplication
@EnableScheduling//启动定时任务
public class WechatApplication {

    public static void main(String[] args) {
        SpringApplication.run(WechatApplication.class, args);
    }
    // 定时
    @Scheduled(cron = "0 30 8 * * *")
    public void goodMorning(){
        Pusher.push();
    }

}
